import request from '@/utils/request'

/**
 *
 * @param {*} mobile 手机号
 * @param {*} code 验证码
 * @returns
 */
export const reqLogin = (mobile, code) => {
  return request({
    method: 'post',
    url: '/authorizations',
    data: {
      mobile,
      code,
    },
  })
}

export const getUserInfo = () => {
  return request({
    method: 'GET',
    url: '/user/profile',
  })
}
